import {
  Dashboard,
  Article,
  Setting,
  ArticleEdit,
  Notifications,
  NotificationsDeatils,
  NoAuth
} from './pages'

const routes = [
  {
    path: '/admin/dashboard',
    component: Dashboard,
    title: '仪表盘',
    isNav: true,
    iconType: 'dashboard'
  },
  {
    path: '/admin/article',
    component: Article,
    title: '文章管理',
    isNav: true,
    iconType: 'ordered-list'
    // hasAuth: false
  },
  {
    path: '/admin/article/edit/:id',
    component: ArticleEdit,
    isNav: false,
    hasAuth: false
  },
  {
    path: '/admin/setting',
    component: Setting,
    title: '系统设置',
    isNav: true,
    iconType: 'setting'
  },
  {
    path: '/admin/notifications',
    component: Notifications,
    isNav: false
  },
  {
    path: '/admin/notifications/details/:id',
    component: NotificationsDeatils,
    isNav: false
  },
  {
    path: '/admin/noauth',
    component: NoAuth,
    isNav: false
  }
]

export default routes
